import { request } from '../request.js'

const shop = {
  banner (params) {
    return request({
      method: 'Get',
      url: '/api/cms/front/banner',
      params: params,
	  loading:true
    })
  },
  news (params) {
    return request({
      method: 'Post',
      url: '/api/cms/front/news/'+params,
	  loading:true
    })
  },
  commodity (params) {
    return request({
      method: 'Get',
      url: '/api/goods/front/goods/hotGoods',
      params: params,
	  loading:true
    })
  },
  activity (params) {
    return request({
      method: 'Get',
      url: '/api/cms/act',
      params: params,
	  loading:true
    })
  }, 
  noReadMessage (params) {
    return request({
      method: 'Get',
      url: '/api/uac/memberMessage/noread',
      params: params,
	  loading:true
    })
  },
  subsite () {
    return request({
      method: 'Get',
      url: '/api/cms/front/subsite',
  	  loading:true
    })
  }
}
export default shop
